﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zj.OpenAuth.Domain.Core;

namespace Zj.OpenAuth.DTO.Common
{
    /// <summary>
    /// role data transfer object
    /// </summary>
    public class RoleDTO
    {
        public int Id { get; set; }
        [Required]
        [StringLength(36, MinimumLength = 2)]
        public string Text { get; set; }



        [StringLength(36)]
        public string Code { get; set; }



        [StringLength(1000)]
        public string Description { get; set; }



        public StatusEnum Status { get; set; }



        public int CreatorId { get; set; }



        [DataType(DataType.DateTime)]
        public DateTime CreateTime { get; set; }



        public int? LastModifierId { get; set; }

        [DataType(DataType.DateTime)]
        public DateTime? LastModifyTime { get; set; }
    }
}
